<!doctype html>
    <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en-US"> <![endif]-->
    <!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en-US"> <![endif]-->
    <!--[if IE 8]>    <html class="lt-ie9" lang="en-US"> <![endif]-->
    <!--[if gt IE 8]><!--> 
<html lang="en-US"> <!--<![endif]-->
    <head>
        <!-- META TAGS -->
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title>Knowledge Base Theme</title>

        <link rel="shortcut icon" href="__PUBLIC__/h/images/favicon.png" />

        <!-- Style Sheet-->
        <link rel="stylesheet" href="__PUBLIC__/h/style.css"/>
        <link rel='stylesheet' id='bootstrap-css-css'  href='__PUBLIC__/h/css/bootstrap5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='responsive-css-css'  href='__PUBLIC__/h/css/responsive5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='pretty-photo-css-css'  href='__PUBLIC__/h/js/prettyphoto/prettyPhotoaeb9.css?ver=3.1.4' type='text/css' media='all' />
        <link rel='stylesheet' id='main-css-css'  href='__PUBLIC__/h/css/main5152.css?ver=1.0' type='text/css' media='all' />
        <link rel='stylesheet' id='custom-css-css'  href='__PUBLIC__/h/css/custom5152.html?ver=1.0' type='text/css' media='all' />

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="__PUBLIC__/h/js/html5.js"></script></script>
        <![endif]-->
    </head>

    <body>

        <!-- Start of Header -->
        <include file="Index/header" />
        <!-- End of Header -->
        <div class="page-container">
            <div class="container">
                <div class="row">

                    <!-- 问题列表 页面左侧内容-->
                    <div class="span8 page-content">
                        <article class="type-page hentry clearfix">
                            <h1 class="post-title">
                                <a href="#">您的问题？</a>
                            </h1>
                            <hr>
                            <p>您所填的信息越完整，可以提高他人为你解决问题的速度和难度！</p>
                        </article>
                        <!-- 
                            所属类别 cid
                            作者：   uid
                            问题标题：title
                            问题详细内容：如报错，切图等等； content
                            发布时间：public_time
                            最近更新时间：last_time

                         -->

                        <form id="contact-form" class="row" action="{:U('Question/doAdd')}" method="post">

                            <div class="span2">
                                    <label for="cid">问题分类： <span>(必填)</span> </label>
                            </div>
                            <div class="span6">
                                    <select name="cid" id="cid"  class="required input-xlarge">
                                        <foreach name="cats" item="v">
                                            <option value="{$v['id']}">{$v['name']}</option>
                                        </foreach>
                                    </select>
                                    <!-- <input type="text" name="name" id="name" class="required input-xlarge" value="" title="* Please provide your name"> -->
                            </div>

                            <div class="span2">
                                    <label for="title">标题： <span>(必填)</span></label>
                            </div>
                            <div class="span6">
                                    <input type="text" name="title" id="title" class="title required input-xlarge" value="" title="* 对问题的简单描述">
                            </div>

                            <div class="span2">
                                    <label for="editor_singcms">详情： <span>(选填)</span> </label>
                            </div>
                            <div class="span5">
                                <textarea class="input js-editor" id="editor_singcms" name="content" rows="20" ></textarea>
                            </div>

                            <div class="span2">
                                    <label for="editor_singcms"> <span>*</span> </label>
                            </div>
                            <div class="span6 offset2 bm30">
                                   <button id="add-submit" class="btn btn-inverse" type="button">提交</button>
                                    <img src="__PUBLIC__/h/images/loading.gif" id="contact-loader" alt="Loading...">
                            </div>

                        </form>
                    </div>
                <!-- end of page content -->


                    <!-- 页面右侧内容 开始 -->
                    <aside class="span3 page-sidebar">

                            <section class="widget">
                                <div class="support-widget">
                                        <h3 class="title">Support</h3>
                                        <p class="intro">Need more support? If you did not found an answer, contact us for further help.</p>
                                </div>
                            </section>
                    </aside>
                    <!-- end of sidebar -->
                </div>
            </div>
        </div>
        <!-- End of Page Container -->

        <!-- Start of Footer -->
        <include file="Index/footer" />
        <!-- End of Footer -->

        

        <!-- script -->
        <script type='text/javascript' src='__PUBLIC__/h/js/jquery-1.8.3.min.js'></script>
        <script type='text/javascript' src='__PUBLIC__/h/js/jquery.easing.1.34e44.js?ver=1.3'></script>
        <script type='text/javascript' src='__PUBLIC__/h/js/prettyphoto/jquery.prettyPhotoaeb9.js?ver=3.1.4'></script>
        <script type='text/javascript' src='__PUBLIC__/h/js/jquery.liveSearchd5f7.js?ver=2.0'></script>
        <script type='text/javascript' src='__PUBLIC__/h/js/jflickrfeed.js'></script>
        <script type='text/javascript' src='__PUBLIC__/h/js/jquery.formd471.js?ver=3.18'></script>
        <!-- <script type='text/javascript' src='__PUBLIC__/h/js/jquery.validate.minfc6b.js?ver=1.10.0'></script>
        <script type='text/javascript' src='__PUBLIC__/h/js/custom5152.js?ver=1.0'></script> -->
        
        <!-- this page js -->
        <script type="text/javascript" src="__PUBLIC__/dialog/layer/layer.js"></script>
        <script type="text/javascript" src="__PUBLIC__/dialog/dialog.js"></script>
        <script type="text/javascript" src="__PUBLIC__/common/common.js"></script>
        <script type="text/javascript" src="__PUBLIC__/kindeditor/kindeditor-all-min.js"></script>
    <script>

        var SCOPE = {
            "add_url" : "{:U('Question/doAdd')}",
            "success_url" : "{:U('Index/index')}",
        };
        KindEditor.ready(function(K) {
            window.editor = K.create('#editor_singcms',{
                  uploadJson : "{:U('Image/kindupload')}", // 上传图片的接口，接收上传图，返回地址
                  afterBlur : function(){this.sync();}, //
            });
        });
    </script>
    </body>
</html>